package org.opengraph.entities;

import java.util.LinkedList;
import java.util.List;



public class Feed extends Entity {
	private String id;
	private String message;
	private String created_time;
	private String updated_time;
	private String likes;
	private String caption;
	private String source;
	private String icon;
	private String name;
	private User from;
	private String picture;
	private DataHelper<Feed> comments;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getCreated_time() {
		return created_time;
	}
	public void setCreated_time(String createdTime) {
		created_time = createdTime;
	}
	public String getUpdated_time() {
		return updated_time;
	}
	public void setUpdated_time(String updatedTime) {
		updated_time = updatedTime;
	}
	public String getLikes() {
		return likes;
	}
	public void setLikes(String likes) {
		this.likes = likes;
	}
	public String getCaption() {
		return caption;
	}
	public void setCaption(String caption) {
		this.caption = caption;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public User getFrom() {
		return from;
	}
	public void setFrom(User from) {
		this.from = from;
	}
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	protected DataHelper<Feed> getComments() {
		return comments;
	}
	protected void setComments(DataHelper<Feed> comments) {
		this.comments = comments;
	}
	public List<Feed> getCommentsList() {
		if(this.comments== null)
			return new LinkedList<Feed>();
		return this.comments.getData();
	}
	
}
